﻿namespace Common
{
    public class ConstParameters
    {


        /// <summary>
        /// AcceptServer TcpListen Port
        /// </summary>
        public const int AstPort = 28588;

        /// <summary>
        /// AcceptServer TcpListen Port
        /// </summary>
        public const int TcpListene = 8886;


        /// <summary>
        /// Message Head Length(+First and Last identification+Check bit) 
        /// </summary>
        public const int MhLenth = 19;

        /// <summary>
        /// Message body Start Index
        /// </summary>
        public const int MBodySatrtIndex = 17;


        /// <summary>
        /// Max TaxiInfo In One Message (Must less than 23)
        /// </summary>
        public const int MaxTaxiInfoInOneMessage = 10;



        /// <summary>
        /// How long Time to Clear  out of date  Taxi  Cache. Unit : second
        /// </summary>
        public const int ClearTaxiCacheTime = 10 * 60; //second

        /// <summary>
        /// 0
        /// </summary>
        public const int TypeTaxi = 0;
        /// <summary>
        /// 1
        /// </summary>
        public const int TypePhoneUser = 1;
        /// <summary>
        /// 2
        /// </summary>
        public const int TypeTaxiDispatchClient = 2;


 

        #region Command  Code




        public const ushort CmdGetNearbyBus = 0x0031;
        public const ushort CmdGetNearbyBusReply = 0x8031;



        public const ushort CmdGetAllBus = 0x0001;
        public const ushort CmdGetAllBusReply = 0x8001;


        public const ushort CmdSendAD = 0x8002;

        public const ushort CmdGetClientVersion = 0x0003;
        public const ushort CmdGetClientVersionReply = 0x8003;



        public const ushort CmdGetControlCardConfig = 0x0004;
        public const ushort CmdGetControlCardConfigReply = 0x8004;

         

        #endregion


    }
}
